import axios from 'axios'
// import {getToken,setToken} from '../utils/auth'
// import {message} from 'ant-design-vue'
// import router from "../router"

const service = axios.create({
    // baseURL:import.meta.env.VITE_APP_BASE_URL,
    // baseURL:"http://123.60.105.203:9000/",
    baseURL:"/api",
    headers: {'Content-Type': 'application/json;charset=utf-8'},
    timeout: 50000, // request timeout
    // xsrfCookieName: 'csrftoken',
    // xsrfHeaderName: 'x-csrftoken'
})


export const request = service